import React, { Component } from 'react'
import { CountConsumer } from './CounterContext'

export default class Count extends Component {
  render() {
    return (
      <CountConsumer>
        {
          ({ num }) => {
            return (
              <>
                {num}
              </>
            )
          }
        }
      </CountConsumer>
    )
  }
}
